# coding:utf-8

import pymongo
#from pymongo import MongoReplicaSetClient
from pymongo import MongoClient

mongo_client_cluster = MongoClient("101.200.199.196py", 27017)#pymongo.MongoClient('mongodb://172.17.32.139:30000,172.17.32.140:30000,172.17.32.141:30000')

col_samples_01=mongo_client_cluster["vibration"]
col_vibration_leve=mongo_client_cluster["vibration"]
col_max_acceleration=mongo_client_cluster["vibration"]
col_event=mongo_client_cluster["vibration_result"]["event"]
col_event_data=mongo_client_cluster["vibration_result"]["event_data"]
col_StatisticsEvent24Hours=mongo_client_cluster["vibration_result"]["StatisticsEvent24Hours"]
col_StatisticsEvent7Days=mongo_client_cluster["vibration_result"]["StatisticsEvent7Days"]
col_StatisticsEvent30Days=mongo_client_cluster["vibration_result"]["StatisticsEvent30Days"]
col_Tantile24Hours=mongo_client_cluster["vibration_result"]["Tantile24Hours"]
col_Tantile30Days=mongo_client_cluster["vibration_result"]["Tantile30Days"]
col_Tantile7Days=mongo_client_cluster["vibration_result"]["Tantile7Days"]

col_noise_event=mongo_client_cluster["noise"]["event"]
col_noise_event_data=mongo_client_cluster["noise"]["event_data"]
col_resample_event_data=mongo_client_cluster["noise"]["resample_event_data"]



col_event_data_mqtt = mongo_client_cluster["vibration_result_mqtt"]["event_data_mqtt"]#MongoClient("127.0.0.1", 27017)["vibration_result_mqtt"]["event_data_mqtt"]
col_event_mqtt = mongo_client_cluster["vibration_result_mqtt"]["event_mqtt"]#MongoClient("127.0.0.1", 27017)["vibration_result_mqtt"]["event_mqtt"]
col_level_data_mqtt = mongo_client_cluster["vibration_result_mqtt"]["level_data_mqtt"]#MongoClient("127.0.0.1", 27017)["vibration_result_mqtt"]["level_data_mqtt"]
